<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Controller;


/**
 * 会员接口
 */
class Spider extends Controller
{


    public function _initialize()
    {
        parent::_initialize();
    }
    //执行命令
    public function exec()
    {
        ///data/www/ithua-addons/Service/command/spider-login.php
        ob_start();
         passthru('/usr/local/php/bin/php /data/www/ithua-addons/Service/command/spider-login.php', $return_value);
        $var = ob_get_contents();
        ob_end_clean(); //Use this instead of ob_flush()

      var_dump($var,$return_value);
    }

}
